import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';
import 'package:mandoby/config/theme/custom_text_style.dart';
import 'package:mandoby/core/app_export.dart';
import 'package:mandoby/core/widgets/app_bar/custom_app_bar.dart';
import 'package:mandoby/core/widgets/custom_bottom_bar.dart';
import 'package:mandoby/core/widgets/custom_scaffold_widget.dart';
import 'package:mandoby/features/finsh/presentation/pages/finsh_screen.dart';
import 'package:nb_utils/nb_utils.dart';

import '../../../../config/theme/app_decoration.dart';
import '../../../../core/widgets/custom_elevated_button.dart';

class PayScreen extends StatelessWidget {
  const PayScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CustomScaffoldWidget(
      decoration: AppDecoration.gradientWhiteAToBlue900,
      appBar: CustomAppBar(),
      screenPadding: EdgeInsets.symmetric(horizontal: 16.w),
      body: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          30.hs,
          Text(
            "من فضلك اختر طريقة الدفع ",
            style: CustomTextStyles.font19black400,
          ).animate().slideX(),
          20.hs,
          Row(children: [
            RadioListTile(
              value: 1,
              title: Text("بطاقة الاتمان"),

              contentPadding: EdgeInsets.zero,
              groupValue: 1,
              onChanged: (value) {},
            ).expand(),
            CustomImageView(imagePath: "assets/images/pay_link.png",)
          ],).animate().slideY(),
          Spacer(),
          CustomElevatedButton(
            text: "التالي",
            margin: EdgeInsets.symmetric(horizontal: 150.w),
            onPressed: (){
              FinshScreen().launch(context,isNewTask: true);
            },
            buttonStyle: const ButtonStyle(
                backgroundColor: MaterialStatePropertyAll(Color(0xff019FE0))),
          ),

          50.hs,
        ],
      ),
      navBar: CustomBottomBar(selectedIndex: 0),
    );
  }
}
